import basepath
import os
from common.mysql import get_mysql_data as get_data
from common.base import j_save, j_load

fname = os.path.
def d_print(datas):
    for item in datas:
        print(item)


sql = '''
    select * from 医疗废物台帐

'''

os.system('cls')

datas = get_data(sql)


d = [{key: f'{data.get(key)}' for key in data} for data in datas]


j_save('ylfwtz.txt', d)
print('医疗废物台账备份成功')